import cProfile

def factorial(n):
    if n == 0:
        return 1
    else:
        return n * factorial(n-1)

def main():
    result = factorial(20000)
    print(f"Factorial of 20 is {result}")

if __name__ == "__main__":
    # 使用 cProfile 分析 main 函数的性能
    cProfile.run('main()')